package com.icss.struct;

import java.util.HashMap;
import java.util.Map;

public class URLMapping {
    public static final Map<String, String> PATH_MAPPING = new HashMap<>();
    static {
        PATH_MAPPING.put("/login.action", "com.icss.struct.action.UserAction@login");
        PATH_MAPPING.put("/regist.action", "com.icss.struct.action.UserAction@regist");

        // 注册时验证验证码
        PATH_MAPPING.put("/checkname.action", "com.icss.struct.action.UserAction@checkname");
        PATH_MAPPING.put("/getTag.action", "com.icss.struct.action.SNSTagAction@getTop10Tag");
        PATH_MAPPING.put("/updateTag.action", "com.icss.struct.action.SNSTagAction@update");
        // 获取所有的用户数据
        PATH_MAPPING.put("/userlist.action", "com.icss.struct.action.SNSUserAction@findalluser");
        // 删除用户
        PATH_MAPPING.put("/deleteuser.action", "com.icss.struct.action.SNSUserAction@delete");

        // TODO请求处理添加
    }
}
